export default {
  url: "/do/select/risk",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'contract/risk',
  title: "风险管理",
	tabs: {"code":"riskType","list":[],"keyword":"type"},
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"contractId","label":"关联合同","type":"search","depend":"contract"},{"name":"companyId","label":"所属公司","type":"search","depend":"company"},{"name":"type","label":"风险类型","code":"riskType"},{"name":"content","label":"内容","type":"textarea"},{"name":"status","label":"是否解除","type":"switch"},{"name":"notice","label":"通知对象","type":"inputTag"},{"name":"explain","label":"解除说明","type":"textarea"},{"name":"file","label":"附件","type":"attach"},{"name":"finishUser","label":"完成人","type":"user"}],
  columns: ["contractId","type","status","creator","createGmt","updateGmt"],
  condition: ["status"],
  slots: {
      header$() {
      return (
        <>
        <z-action p='myxxxfjf' label='上报风险' mode='dialog' fields={["type","contractId","content","notice"]} br='beforeAdd' type='primary' url='/api/risk/addRisk' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='0ef08mxs' label='详情' data={row} mode='drawer' href='/contract/riskDetail' width='1000px' link map={{"id":"id"}} />
<z-action p='uhiyl5l2' label={row.status == 0?'解除风险':null} mode='dialog' fields={["explain","file"]} link data={row} url='/do/patch/risk_lift' />
<z-action p='bwjgmtew' label='删除' mode='confirm' link data={row} url='/do/delete/risk' />
        </>
      )
    }
  }
}
  